﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	x:Class="JBot.Windows.UpdateWindow"
	x:Name="Window"
	Title="Update"
	WindowStartupLocation="CenterOwner"
	Width="520" Height="370" mc:Ignorable="d" Loaded="Window_Loaded">

	<Grid x:Name="LayoutRoot">
		<Grid.RowDefinitions>
			<RowDefinition Height="30"/>
			<RowDefinition Height="50"/>
			<RowDefinition Height="100*"/>
			<RowDefinition Height="36"/>
		</Grid.RowDefinitions>
		<GroupBox Header="Searching updates" Grid.Row="1" Margin="0,0,8,0">
			<Grid>
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="0.841*"/>
					<ColumnDefinition Width="0.159*"/>
				</Grid.ColumnDefinitions>
				<ProgressBar Margin="8,0" VerticalAlignment="Center" Height="15" Name="progressBarUpdate" />
				<Button Content="Cheack" VerticalAlignment="Center" Margin="10,0,8,0" Grid.Column="1" Name="buttonCheck" Click="buttonCheck_Click" />
			</Grid>
		</GroupBox>
		<GroupBox Header="Searched updates" Grid.Row="2" Margin="0,0,8,0">
			<Grid>
				<ListView Margin="0,0,2,10" Name="listViewUpdates" SelectionChanged="listViewUpdates_SelectionChanged">
					<ListView.View>
						<GridView>
							<GridViewColumn Header="" Width="20" DisplayMemberBinding="{Binding IsChecked}" />
							<GridViewColumn Header="Name" Width="185" DisplayMemberBinding="{Binding Name}" />
							<GridViewColumn Header="Version" Width="80" DisplayMemberBinding="{Binding PublishVersion}" />
							<GridViewColumn Header="Publish date" Width="100" DisplayMemberBinding="{Binding PublishDate, StringFormat=\{0:g\}}" />
							<GridViewColumn Header="Priority" Width="75" DisplayMemberBinding="{Binding Priority}" />
                        </GridView>
					</ListView.View>
                </ListView>
			</Grid>
		</GroupBox>
		<Label Content="Update JBot program and plugins" Height="30" Margin="0"/>
		<Button HorizontalAlignment="Right" Width="75" Content="Upgrade" Grid.Row="3" Margin="0,0,87,8" d:LayoutOverrides="Height" VerticalAlignment="Bottom" Name="buttonOk" IsDefault="True" Click="buttonOk_Click" />
		<Button HorizontalAlignment="Right" Width="75" Content="Cancel" Grid.Row="3" Margin="0,0,8,8" d:LayoutOverrides="Height" VerticalAlignment="Bottom" IsCancel="True" />
	</Grid>
</Window>